Type.registerNamespace('ModWatch');

ModWatch.CheckBoxModWatcherBehavior = function(element) { 
    ModWatch.CheckBoxModWatcherBehavior.initializeBase(this, [element]);

    this._valueToCompare = false;
}

ModWatch.CheckBoxModWatcherBehavior.prototype = {

	get_valueToCompare : function() {
		return this._valueToCompare;
	},

	set_valueToCompare : function(value) {
		if (value == true)
			this._valueToCompare = true;
		else
			this._valueToCompare = false;
	},

	hasChanged : function() {
		if (this.get_element() && this.get_element().checked != this._valueToCompare)
			return true;
		return false;
	}

}

ModWatch.CheckBoxModWatcherBehavior.registerClass('ModWatch.CheckBoxModWatcherBehavior', ModWatch.ModWatcherBehaviorBase);

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
